﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Login.ascx.cs" Inherits="Index_Login" %>

    <script language="javascript" type="text/javascript">
        
                   
        function chk()
        {
          var username = document.all.txtUserName.value;	  
          if (username == "")
          {
              alert("Please enter user name。");
              return;
          }
          
          var pwd = document.all.txtPwd.value;	
          if (pwd == "")
          {
              alert("Please enter paswword。");
              return;
          }
        }
    </script>

     <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding-top:10px;" id="table1" runat="server">
  <tr>
    <td colspan="2" class="wd_signin">Login My Library</td>
    </tr>
  <tr>
    <td width="32%" height="20">User Name:</td>
    <td width="68%"><asp:TextBox ID="txtUserName" runat="server" Width="120px" CssClass="signininput"></asp:TextBox></td>
  </tr>
  <tr>
    <td height="20">Password:</td>
    <td><asp:TextBox ID="txtPwd" runat="server" Width="120px" TextMode="Password" CssClass="signininput"></asp:TextBox></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
	<asp:Button ID="btnLogin" runat="server" Text="Login" OnClick="btnLogin_Click"  CssClass="btn_singin" />
      <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#">Forget Password?</asp:HyperLink></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="Register.aspx">Register for free</a></td>
  </tr>
</table>
<table border="1" cellpadding="1" cellspacing="0" runat="server"
                            id="table2" width =100%>
                            <tr align="center">
                                <td><asp:Label ID="Label1" runat="server" Width="129px">Welcome</asp:Label></td>
                            </tr>
                            <tr align="center">
                                <td>
                                    <a href="#'">My Library</a>
                                </td>
                            </tr>
                            </table>
            <%--<table>
                <tr>
                    <td style="width: 217px">
                        <table border="1" cellpadding="1" cellspacing="0" runat="server" id="table1">
                            <tr align="left">
                                <td colspan="2">
                                    登陆我的图书馆</td>
                            </tr>
                            <tr align="center">
                                <td>
                                    用户名:</td>
                                <td style="height: 24px; width: 155px;">
                                    </td>
                            </tr>
                            <tr align="center">
                                <td>
                                    密 码:</td>
                                <td style="width: 155px">
                                    </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center" style="height: 24px">
                                    
                                    </td>
                            </tr>
                        </table>
                        <table border="1" cellpadding="1" cellspacing="0" runat="server"
                            id="table2" width =100%>
                            <tr align="center">
                                <td><asp:Label ID="Label1" runat="server" Width="129px">欢迎</asp:Label></td>
                            </tr>
                            <tr align="center">
                                <td>
                                    <a href="#'">我的图书馆</a>
                                </td>
                            </tr>
                            </table>
                    </td>
                </tr>
            </table>--%>
     
  